The ScrapCt FCMD supports a control that displays the current clipboard (= "scrap"). It can be placed in any ViewIt window, making it easy to create modal or modeless "Clipboard" windows.
Operation
The current version of ScrapCt can display the resource types TEXT, PICT, ICON, SICN, CURS, acur, cicn, PAT , PAT#, STR , and STR#. These types are listed in STR# 1801.
Each ScrapCt control must be linked to an STR# resource that contains "preferred" resource types. ScrapCt uses this list to search for types within the current clipboard (clipboards can contain multiple types), and displays the first type found.
The default ScrapCt is linked to STR# 1801, but you can change this to any other program STR# resource. For example, if you prefer to only have PICT-type resources displayed by a particular ScrapCt control, then link this control to an STR# that contains only the "PICT" string. All other resource types will then cause the "Unable To Display" string to be shown.
ScrapCt controls must be type Static, with the Scrap message checked, and have solid backgrounds.
Limitations
No support for right or center justification. No support for colors beyond frame, body, & content. No support for hand scrolling. No use is made of control values or varCode. No support for data linking.
Source Code
The source code and development projects for this driver can be obtained as part of the Inside FaceWare 2.0 package. It is an excellent example of a small, but useful ViewIt control driver.